package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * @Description   客户高级属性
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("cp_contact_field" )
@ApiModel(value = "客户高级属性")
@EqualsAndHashCode(callSuper = false)
public class ContactFieldEntity extends BaseEntity<ContactFieldEntity> {

	@TableId(type = IdType.AUTO)
	@ApiModelProperty(value = "id")
	private Integer id;

	/**
	 * 字段标识 input-name
	 */
	@ApiModelProperty(value = "名称")
	private String name;

	/**
	 * 字段名称 input-label
	 */
	@ApiModelProperty(value = "级别")
	private String label;

	@ApiModelProperty(value = "字段类型 input-type 0text 1radio 2 checkbox 3select 4file 5date 6dateTime 7number 8rate")
	private String type;

	@TableField(exist = false)
	@ApiModelProperty(value = "字段类型描述中文")
	private String typeCn;

	@TableField(exist = false)
	@ApiModelProperty(value = "字段类型描述英语")
	private String typeEn;

	@ApiModelProperty(value = "字段可选值")
	private String options;

	@TableField("`order`")
	@ApiModelProperty(value = "排序")
	private Integer order;

	@ApiModelProperty(value = "状态 2--全部  1--开启  0--关闭")
	private Integer status;

	@ApiModelProperty(value = "是否为系统字段 0否1是")
	private Integer isSys;

	@ApiModelProperty(value = "企业id")
	private Integer corpId;

}
